@charset 'utf-8';
@import '_color.scss';
// 模态框 
.modal-content {
    border-radius: 5px;
    background-color: $modalBg;
    // width: auto;
    min-width: 510px;

    // 头部
    .modal-header {
        background-color: $modalTitle;
        height: 45px;
        line-height: 45px;

        .modal-title {
            font-size: 16px;
           
        }

        .close {
            font-size: 20px;
            font-weight: 500;
            color:#666;
            outline: 0;
            text-shadow: none;
            opacity: 1;
            padding: 10px;
            line-height: 32px;
        }
    }

    // 内容部分
    .modal-body {
        padding: 20px 40px;
        font-size: 14px;
        color: #666;

        .formGroup {
            position: relative;
            display: flex;
            align-items: center;
            margin-bottom: 20px;

            &.task-box {
                max-width: 240px;
                margin-bottom: 10px;

                >label {
                    min-width: 72px;
                    margin-bottom: 0
                }

                >input,
                >select {
                    height: 26px;
                }

                a {
                    width: 70px;
                    height: 26px;
                    line-height: 26px;
                    font-size: 12px;
                    color: #666;
                    border: 1px solid rgba(204, 204, 204, 1);
                    border-radius: 4px;
                    margin-bottom: 10px;
                }
            }

            >label {
                text-align: center;
                padding: 0;
                color: #666;
                font-size: 14px;
                width: 96px;
                text-align: left;
                margin-right: 10px;
            }

            >input
             {
                width: 330px;
                height: 38px;
                padding-left: 10px;
                border-radius: 3px;
                border: 1px solid #ccc;
                background-color: #fff;
                box-sizing: border-box;
                color: #333;
            }
     
            >textarea {
                width: 330px;
                padding: 10px;
                border-radius: 3px;
                border: 1px solid #ccc;
                background-color: #fff;
                box-sizing: border-box;
                color: #333;
            }

            select {
                width: 160px;
            }

            input[type="file"] {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                opacity: 0;
            }

            span {
                position: absolute;
                right: 0;
                display: block;
                width: 38px;
                height: 100%;
                text-align: center;
                line-height: 38px;
                border: 1px solid #ccc;
                border-radius: 3px;
                box-sizing: border-box;
                color: #999;
            }

        .check-box {
            width: 100%;
            input {
            display: none;
            }
            
            input:checked+label {
            &::before {
            content: "✔";
            border: 1px solid #13D07E;
            color: #13D07E;
            }
            }
            
            label {
            position: relative;
            font-size: 14px;
            padding-left: 16px;
            
            &::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            margin-top: -7px;
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 1px solid #999;
            text-align: center;
            line-height: 14px;
            // font-size: 12px;
            }
            }
            
            .quanxian {
            margin-right: 20px;
            width: 80px;
            
            }
            .quanxian-leve-box{
            display: flex;
            flex-wrap: wrap;
            span{
            margin: 2px 10px;
            }
            }
            }

        .imgBox {
            margin: -20px -40px;
            img{
                display: block;
                width: 100%;
                line-height: 0;
            }
        }
       
    }

    // 底部
    .modal-footer {
        border-top: 0;

        button {
            width: 112px;
            height: 36px;
            border-radius: 4px;
            border: 0;
            font-size: 13px;
        }

        .btn-secondary {
            background-color: $modalButton;
            margin-right: 5px;
        }

        .btn-primary {
            background-color: $baseColor;
        }
    }

    // 图标库弹窗
    .iconList {
        display: none;
        position: absolute;
        top: 200px;
        left: 50%;
        transform: translateX(-50%);
        width: 400px;
        height: 200px;
        background-color: #fff;
        padding-bottom: 40px;

        .btnList {
            position: absolute;
            bottom: 10px;
            right: 10px;

            button {
                width: 60px;
                height: 32px;
                margin-right: 10px;
                border-radius: 4px;
            }

            button:nth-of-type(2) {
                background-color: $greenText;
            }
        }

        ul {
            width: 100%;
            height: 100%;
            overflow-y: scroll;
            display: flex;
            flex-wrap: wrap;

            li {
                position: relative;
                margin: 8px;
                border: 1px solid #ccc;

                img {

                    margin: auto;
                }

                p {
                    display: none;
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background-color: rgba(0, 0, 0, .3);

                }

                span {
                    display: none;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    width: 50px;
                    height: 50px;
                    border-radius: 50%;
                    background-color: rgba(0, 0, 0, .5);
                    line-height: 50px;
                    text-align: center;
                    font-size: 30px;
                    color: #fff;
                }
            }

            li:hover p {
                display: block;
            }

        }
    }

    ::-webkit-input-placeholder {
        /* Chrome/Opera/Safari */
        color: #999;
        font-size: 12px;
    }

    ::-moz-placeholder {
        /* Firefox 19+ */
        font-size: 12px;
        color: #999;
    }

    :-ms-input-placeholder {
        /* IE 10+ */
        font-size: 12px;
        color: #999;
    }

    :-moz-placeholder {
        /* Firefox 18- */
        font-size: 12px;
        color: #999;
    }
    }
}

.my-select-box.modal-select{
        border: 1px solid #ccc;
        color: #333;
        >a{
            color: #333;
            border: 0;
            &:hover{
                color: #333;
                background-color: $modalBg;
            }
            >i{
                border-top: 6px solid #333;
            }
            
        }
        .my-select-options{
            border: 1px solid #ccc;
            background-color: $modalBg;
            li{
                color: #333;
                &:hover{
                    color: #00d075;
                }
                &.active{
                    color: #00d075;
                }
            }
        }
}